# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-flask-sqlalchemy
_pkgname=Flask-SQLAlchemy
pkgver=2.4.1
pkgrel=1
pkgdesc='Adds SQLAlchemy support to your Flask application.'
url='https://pypi.org/project/flask-sqlalchemy/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-flask' 'python2-sqlalchemy')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a55e6fe563583e240bb594c157424fba1a8462f953fa0bb14701954bcb52d1e7bf71eec38f4037c1752ceab90e798642274de58e0f950d83e234f4c702e0b6ee')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

